package com.java.cloud.account.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 账户表
 * 
 * @author jl
 * @since 2020-03-13 12:21:12
 */
@Data
@TableName("t_account")
public class Account implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * id
	 */
	@TableId
	private Long id;
	/**
	 * 用户id
	 */
	private Long userId;
	/**
	 * 总额度
	 */
	private BigDecimal total;
	/**
	 * 已用余额
	 */
	private BigDecimal used;
	/**
	 * 剩余可用额度
	 */
	private BigDecimal residue;

}
